package com.test.application.baiduORC.config;

import com.baidu.aip.ocr.AipOcr;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 百度文字识别配置类
 * 作者: yanruizhi
 * 时间: 2023/10/23 14:32
 */
@Configuration
public class OrcConfig {

    /**
     * 百度文字识别实体类
     */
    @Bean
    public AipOcr getAipOcr() {
        return new AipOcr("41595868", "ypFpPZaNizWk41jtjNEFxes1", "m839B0NURsnNL15DmI5VpC6QCfczhE3E");
    }
}
